<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>React Demo 文件</title>
  <!-- react库, 提供React对象 -->
  <script src="../lib/react.development.js"></script>
  <!-- react-dom库, 提供了ReactDOM对象 -->
  <script src="../lib/react-dom.development.js"></script>
</head>
<body>
  <div id="root">

  </div>
    <script>
        console.log(ReactDOM);
        console.log(React);
        const element = React.createElement(
            "h1",
            {title: "你好,React"},
            'Hello React'
        )
        ReactDOM.render(element,document.getElementById("root"))
    </script>
</body>
</html>